/*
 * 英才汇硕信息科技有限公司 拥有本软件版权 2021 并保留所有权利。
 * Copyright 2021, YCHS Information&Science Techology Co.,Ltd,
 * All right reserved.
 */
package com.ychs.lawyerback.service;

import com.ychs.lawyerback.dto.RoleOptDTO;
import com.ychs.lawyerback.dto.RoleQueryDTO;

import java.util.List;
import java.util.Map;

/**
 * @author mayujing
 * @version 1.0
 */
public interface RoleService {
    Map<String, Object> getRolesByCondition(RoleQueryDTO roleQueryDTO);

    int addRole(RoleOptDTO roleOptDTO);

    int deleteRole(List<Long> ids);

    boolean existsByRoleName(String roleName);

    boolean existsByRoleKey(String roleKey);

    int updateRole(RoleOptDTO roleOptDTO);

    boolean existsByRoleKeyExcludeCurrent(String roleKey, Long roleId);
}
